package org.jeecg.modules.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.api.vo.toplist.TopListDetailVo;
import org.jeecg.modules.music.entity.MusArtist;
import org.jeecg.modules.music.entity.MusSong;
import org.jeecg.modules.music.entity.MusTopList;

import java.util.List;

public interface MusTopListMapper  extends BaseMapper<MusTopList> {

    IPage<MusSong> querySongDetailPage(Page<MusSong> page, String toplistId, MusSong songParams);

    IPage<MusSong> queryNoSongDetailPage(Page<MusSong> page, String toplistId, MusSong songParams);

    List<MusSong> querySongsDetail(String id);

    Integer countToplist();

    List<TopListDetailVo> queryToplistAll(@Param("type") Integer type);
}
